<?php
declare (strict_types = 1);

namespace app\index\controller;

use think\facade\Db;

class Index
{
    public function index(){
        $list = Db::name('member')->limit(5)->select()->toArray();

        foreach ($list as $key => $value) {
            $list[$key]['classification'] = Db::name('industry')->where('id',$value['classification'])->value('name');
            $list[$key]['address'] = Db::name('address')->where('id',$value['address'])->value('name');
        }

        return view('',['list'=>$list]);
    }

    public function list()
    {
        return view();
    }
}